onError

open fun onError(@NonNull error: E)(source)

Called when the asynchronous operation fails. The mode of failure is indicated by the Throwable passed as an argument to this method.

Parameters

error

A subclass of Throwable with more details about the error that occurred.